package com.yf.kaibiyuanze;

import com.yf.kaibiyuanze.impl.JavaCourse;
import com.yf.kaibiyuanze.impl.JavaCourseDiscount;

/**
 * @Author Yang_Vincent
 * @Date 2020/8/17 23:04
 */
public class myTest {

    public static void main(String[] args) {
        JavaCourse javaCourse = new JavaCourse(1, "1", 1.1D);

        String s = javaCourse.toString();
        System.out.println(s);

        JavaCourseDiscount java = new JavaCourseDiscount(12, "java", 12.56);

        Double price = java.getPrice();

        Double originPrice = java.getOriginPrice();

        System.out.println(price + "," + originPrice);
    }
}
